package base.string;

public class FormatStringDemo {


    public static void main(String[] args) {
        test();
    }


    public static void test(){
        long num=10000000;
        String name=String.format("report_%d other data",num);                   //          report_10000000 other data
        String data=String.format("report_%s other data","mid data ");          //      report_mid data  other data


        System.out.println(name+"  ;  "+data);
    }


}
